package com.spring.cloud.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duan
 * @version 1.0
 * @date 2023/6/12 19:22
 */
@RestController
public class GreetingController {

    public String greeting(@PathVariable("username") String username) {
        return String.format("Hello %s!\n", username);
    }
}
